import request from '@/utils/request';

export async function queryReceipts(data) {
  return request(PORTAL_PATH + '/api/qianzhuang/receipts', {
    method: 'GET',
    data,
  });
}

export async function buildReceipts(data) {
  return request(PORTAL_PATH + '/api/qianzhuang/receipts/build', {
    method: 'PUT',
    requestType: 'form',
    data: data,
  });
}

export async function apply(data) {
  return request(PORTAL_PATH + '/api/receipt', {
    method: 'POST',
    requestType: 'form',
    data: data,
  });
}

export async function getGoods(data) {
  return request(PORTAL_PATH + '/api/goods/type', {
    method: 'GET',
    data,
  });
}
